package ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.authorizeRFCPanel.authorizeRFCPanelSubs.listeners;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.controller.authoriseRFC.GenerateWorkorderThread;
import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.authorizeRFCPanel.authorizeRFCPanelSubs.CreateWorkOrderDialog;

public class CreateWorkorderActionListener implements ActionListener{
	
	private CreateWorkOrderDialog workOrderDialog;
	
	public CreateWorkorderActionListener(CreateWorkOrderDialog workOrderDialog){
		this.workOrderDialog = workOrderDialog;
	}

	@Override
	public void actionPerformed(ActionEvent arg0) {

		new GenerateWorkorderThread(this.workOrderDialog).start();
		
	}

}
